<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{king:title/} KingCMS Administrator Panel.</title>
<link href="../system/skins/default/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../system/skins/default/fun.js"></script>
</head>

<body>
{king:skin.float/}
<div id="top">
	<a id="logo" href="../system/manage.php" title="{lang:system.home.welcome/}"><img src="../system/skins/{king:adminskins/}/logo.gif"/></a>
	<a href="../" target="_blank" class="menu">{lang:system.common.home/}</a>

	<ul class="k_menu">

		<!-- 设置为显示的模块 -->
		{king:skin.module show="1"}
		<li><a href="javascript:;">{king:name/}</a>
				<ul>
				{king:skin.menu module="(king:path/)"}
					<li class="{king:class/}"{king:rel/}><a href="{king:href/}"{king:onclick/}{king:target/}><img src="../system/images/white.gif" class="os {king:img/}"/>{king:name/}</a></li>
				{/king:skin.menu}
				</ul>
		</li>
		{/king:skin.module}


		<li><a href="javascript:;">{lang:system.common.module/}</a>

			<!-- 设置为不显示的模块 -->
			<ul>
			{king:skin.module show="0"}
				<li><a href="../{king:path/}/manage.php"><img src="../system/images/white.gif" class="os k7"/>{king:name/}</a></li>
			{/king:skin.module}
			</ul>
		</li>
	</ul>

	{king:skin.mainMenu/}

	<div class="fr">Hi, {king:adminname/} &nbsp;[ {king:resetpwd/} | {king:logout/} ] {king:faq/}</div>

</div>

<div id="main">

	<h2>
		<strong>{king:title size="20"/}</strong>
		<span class="left">
			{king:leftmenu}
				<a href="{king:href/}" class="{king:class/}" rel="{king:rel/}"><img src="../system/images/white.gif" class="os {king:ico/}"/>{king:title/}</a>
			{/king:leftmenu}
				
				<?php
				$as=kc_get('listid',0);
				if(!empty($as)){
				echo '<a href="/portal/manage.content.php?listid='.$as.'&pid=1&sh=1" class="sel">已审核</a>';
				}
				?>
				

		
			<?php			


			//只搜索portal
			if(!kc_val($_GET,'action') && strpos(getcwd(),'portal')>0){
			    $words=empty($_GET['words'])?'':kc_get('words',0);
				$listid=kc_get('listid',0);	
				$shenhe	=kc_get('shenhe',0);	
				$kuser	=kc_get('user',0);	
					
			    echo '<form id="sf" method="get" action="search.php"><input type="text" name="words" id="words" class="kc_in w150" value="'.$words.'" /><a id="slink" href="javascript:void(0);"><img src="../system/images/white.gif" class="os m1"/>{lang:portal.label.find/}</a>';
				
				if($kuser=='1'){
				echo '<span style="float:left">用户名</span><input type="checkbox" name="user" value="1" checked="checked" />';
				}else{
				echo '<span style="float:left">用户名</span><input type="checkbox" name="user" value="1" />';
				}				
				if($shenhe=='1'){
				echo '<span style="float:left">审核</span><input type="checkbox" name="shenhe" value="1" checked="checked" />';
				}else{
				echo '<span style="float:left">审核</span><input type="checkbox" name="shenhe" value="1" />';
				}
			
				echo '<input name="listid" type="hidden" value="'.$listid.'" /></form>';
			}
			?>

			
		</span>
		<span class="right">
			{king:rightmenu}
				<a href="{king:href/}" class="{king:class/}" rel="{king:rel/}" target="{king:target/}"><img src="../system/images/white.gif" class="os {king:ico/}"/>{king:title/}</a>
			{/king:rightmenu}		</span>	</h2>


	{king:inside/}</div>

<div id="bottom">
	{king:copyright/} ~ {king:runtime/}
</div>
<script type="text/javascript">
    $(document).ready(function(){
	$('#slink').click(function(){
	    var words=$('#words').val();
	    
	    if($.trim(words).length<2){
		alert('搜索关键词不能少于2个字符');
		$('#words').focus();
		return false;
	    }else{
		$('#sf').submit();
	    }
	});
	$('#words').keydown(function(event){
	    if(event.keyCode==13){
		$('#sf').submit();
	    }
	});
    });
</script>
</body>
</html>